import request from "@/utils/request.js"


export const baiduUNITchat = (data) => {
	return request(
		'https://aip.baidubce.com/rpc/2.0/unit/service/v3/chat?access_token=24.7ce08b1f40c957e9b4f2485416cd6cfd.2592000.1653618579.282335-25193619', {
			method: "POST",
			data: {
				'version': '3.0',
				'service_id': 'S61552',
				'session_id': data.session_id || '',
				'log_id': data.log_id,
				'request': {
					'query': data.query,
					'terminal_id': data.terminal_id
				}
			}
		})
}

export const sjfChat = (msg) => {
	return request(
		'http://43.129.158.44:8891/predict', {
			method: "POST",
			data: {
				question: msg
			}
		})
}
